﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EvoAlgLib
{
    public class ILTEFunc: Func
    {
        public ILTEFunc() : base(4) { }

        public override double getVal(double[] args)
        {
            if (args.Count() < 4)
                throw new ArgumentException("This function takes exactly 4 arguements.");
            return (args[0] < args[1] ? args[2] : args[3]);
        }

        public override string ToString()
        {
            return "ILTE";
        }

    }
}
